package com.gitee.yanfanvip.model;

public enum OptionsEnum {
	PUT(1),
	PUTALL(2),
	REMOVE(3),
	CLEAR(4);
	
	private final int type;
	private OptionsEnum(int type) {
		this.type = type;
	}
	public int getType() {
		return type;
	}
	
	public static OptionsEnum get(int type) {
		for (OptionsEnum e : OptionsEnum.values()) {
			if(e.type == type){
				return e;
			}
		}
		return null;
	}
}
